package com.exercise.v2;


public class SubtractionExpression extends AbstractExpression {

    public SubtractionExpression() {
        super();
    }
    public SubtractionExpression(int operand1, int operand2) {
        super(operand1, operand2);
    }
    @Override
    public int calculate() {
        return operand1 - operand2;
    }
    @Override
    public String getOperator() {
        return "-";
    }
}

